//package com.auth.service;
//
//import com.auth.pojo.Bo.TokenBO;
//import com.common.result.CommonResult;
//import com.tms.common.core.domain.R;
//import org.springframework.web.HttpRequestMethodNotSupportedException;
//
//import java.security.Principal;
//import java.util.Map;
//
///**
// * Oauth2登录认证
//// * author wangbaohai
// */
//public interface AuthService {
//    R<TokenBO> postAccessToken(
//            Principal principal, Map<String, String> parameters)
//            throws HttpRequestMethodNotSupportedException;
//
//    R<TokenBO> postBamToken(Principal principal,
//                                       Map<String, String> parameters)
//            throws HttpRequestMethodNotSupportedException;
//}
